package com.yun.zf.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.zf.common.admin.dto.community.CommunityPictureDto;
import com.yun.zf.common.app.domain.ZfCommunityPicture;
import com.yun.zf.common.vo.Response;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 社区环境图片表 服务类
 * </p>
 *
 * @author cj
 * @since 2021-01-29
 */
public interface ZfCommunityPictureService extends IService<ZfCommunityPicture> {


    public  Long addCommunityPic(ZfCommunityPicture  picture );

    /**
     * 各类型图片集合，如果type为-1 ，查询所有图片
     * @param communtyId
     * @param type
     * @return
     */
    public List<CommunityPictureDto> getCommunityPicture(Long communtyId, int type);

    /**
     *  通过图片Id 进行删除
     * @param ids
     * @return
     */
    public Response delCommunityPicture(String ids);


    public int delCommunityPicture(Long communtyId, int type);

    public Response communityPic(MultipartFile[] files , HttpServletRequest request);
}
